<!doctype html>
<html lang="en">
<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.js"></script>
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

    <title>@yield('title')</title>
</head>
<style>
    body,button, input, select, textarea,h1 ,h2, h3, h4, h5, h6 { font-family: Microsoft YaHei,'宋体' , Tahoma, Helvetica, Arial, "\5b8b\4f53", sans-serif;}
    body{
        background: #fffefd;
    }
    nav{
        background: #fffefd;
    }
    .nav-pills .nav-link.active, .nav-pills .show>.nav-link{
        color: #543e4e;
        background: unset;
        font-weight: bold;
    }
    a{
        color: #573114;
    }
    a:hover{
        color: #573114;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .center{
        display: block;
        margin: 0 auto;
    }
    .list-group-flush .list-group-item{
        padding: 0;
        border: none;
    }
    .bottom-div .col-3{
        padding: 0;
    }
    .totop{
        display: block;
        margin: 0 auto;
        position: relative;
        top: 26px;
    }
    .bottom-div-bottom{
        padding-top: 40px;
        background: #ecedee;
    }
    .welcome,.bottom-div-bottom .title{
        font-size: 18px;
        color: #909399;
        line-height: 40px;
    }
    .bottom-div-bottom .media-body{
        height: 180px;
    }
    .bottom-div-bottom  ul{
        padding: 0;
        font-size: 12px;
        color: #909399;
    }
    .bottom-div-bottom  li{
        list-style: none !important;
        line-height: 25px;
    }
    .bottom-div-bottom .btn{
        background: #909399;
        border: none;
    }
    @media (max-width: 576px) {
        .navbar-brand img{
            width: 188px;
            height: 40px;
        }
        .eqimg{
            margin: 0 auto;
            display: block;
        }
    }
    @media (min-width: 576px) {
        .eqimg{
            margin: 0 auto;
            display: block;
        }
    }


    @media (min-width: 768px) {  }


    @media (min-width: 992px) {
        .nav-item{
            width: 90px;
            font-size: 14px;
            color: #a17656;
        }
        .nav-top{
            height: 35px;
            padding-top: 0;
            padding-bottom: 0;
        }
        .nav-top li{
            position: absolute;
            right: 0;
        }
        .nav-top .nav-item{
            width: 110px;
        }
        .nav-top .dropdown-menu{
            font-size: 14px;
            border: none;
            padding: 0;
        }
        .nav-top .nav-pills .nav-link.active{
            padding: 0;
        }
        .nav-top .nav-pills .nav-link{
            padding: 0;
        }
        .nav-top-bottom{
            height: 100px;
            padding-top: 0;
            padding-bottom: 0;
        }
        .nav-top-bottom .navbar-brand img{
            position: absolute;
            bottom: 0;
        }
    }


    @media (min-width: 1200px) {
        nav{
            width: 1200px;
            margin: 0 auto;
        }
        .Page.navigation{
            padding-top: 40px;
            line-height: 50px;
        }

        .Page .page-item.disabled .page-link,.Page .page-item.active .page-link,.Page .page-link{
            border: none !important;
            background: none;
            color: #a17656;
            font-size: 14px;
        }
        .Page .page-item.active .page-link{
            color: #543e2e;
        }
    }
</style>
<body>
<div id="app">
    <nav class="navbar navbar-expand-lg navbar-light  d-xl-block d-none nav-top  justify-content-end " >
        <ul class="nav nav-pills">
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">切换语言</a>
                <div class="dropdown-menu">
                    <a class="dropdown-item" href="#">中文</a>
                    <a class="dropdown-item" href="#">英文</a>
                </div>
            </li>
        </ul>
    </nav>
    {{--顶部栏切换中英文，只在PC上显示⬆--}}
        <nav class="navbar navbar-expand-lg navbar-light nav-top-bottom">
            <a class="navbar-brand" href="#">
                <img src="{{$result['logo']}}" alt="">
            </a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse  justify-content-end" id="navbarNavDropdown">
                <ul class="nav nav-pills">

                    @foreach ($result['nav'] as $k=>$menu)
                        @if(count($menu->child)==0)
                            <li class="nav-item">
                                <a class="nav-link  {{$page_name==$menu->uid?'active':''}}" href="{{$menu->url}}">{{$menu->cate_name}}</a>
                            </li>
                        @else
                            <li class="nav-item dropdown">
                                <a class="nav-link  {{$page_name==$menu->uid?'active':''}}" data-toggle="dropdown" href="{{$menu->url}}" role="button" aria-haspopup="true" aria-expanded="false">{{$menu->cate_name}}</a>
                                <div class="dropdown-menu">
                                    @foreach($menu->child as $v)
                                    <a class="dropdown-item" href="{{$v->url}}">{{$v->cate_name}}</a>
                                    @endforeach
                                </div>
                            </li>
                        @endif
                    @endforeach

                </ul>
            </div>
        </nav>
@section('template')
@show
    {{--底部通用栏--}}
        <div class="bottom-div">
            <img class="totop" src="./{{$second or ''}}top.png" alt="">
            <div class="bottom-div-bottom">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-5">
                            <div class="media">
                                <img class="align-self-center mr-3" src="./{{$second or ''}}eq.jpg" width="100" height="100" alt="Generic placeholder image">
                                <div class="media-body">
                                   <h5 class="text-left welcome">欢迎来到菲律宾梦工厂生化科技</h5>
                                    <ul>
                                        <li>公司名称：菲律宾梦工厂生化科技厂</li>
                                        <li>厂址：中国-福建-龙海市-高新工业区6栋168号</li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm">
                            <h5 class="text-left title">
                                联系我们
                            </h5>
                            <ul>
                                <li>邮编：363100</li>
                                <li>热线电话：06-168168168</li>
                            </ul>
                        </div>
                        <div class="col-sm-5">
                            <h5 class="text-left title">反馈意见</h5>
                            <div class="row">
                                <div class="col-8">
                                    <div class="form-group">

                                        <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" >

                                        <small id="emailHelp" class="form-text text-muted">您的宝贵意见将为我们提供很大的帮助</small>
                                    </div>
                                </div>
                                <div class="col">
                                    <button type="submit" class="btn btn-primary">提交</button>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    {{--底部通用栏--}}
</div>
@section('js')
@show

<!--上面是内容-->

<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>